const express = require('express')
const app = express();
const router = express.Router();
const ChannelsController = require("../../controllers/commodity/channels.controllers")
const SwipersController = require("../../controllers/commodity/swiper.controllers")

// 获取频道数据
router.get("/channels", ChannelsController.findAll)
// 获取轮播图数据
router.get("/swiper", SwipersController.findAll)
// 创建轮播图数据
router.post("/swiper/create", SwipersController.create)
// 删除轮播图数据
router.delete("/swiper/delete", SwipersController.delete)
module.exports = router